const GoodsComments = require("../../model/goodsComments");
module.exports = async(req, res) => {
    const { sid } = req.body;
    let resData = {
        data: req.body,
        meta: {
            code: 200,
            msg: "获取成功",
        },
    };
    let goodsComments = await GoodsComments.find({ sid }).populate('sid').populate('uid'); // populate可以多重链式调用
    resData.data = goodsComments;
    res.send(resData);
}